<dt>{dede:field name='typename'/}</dt>
    {dede:sql sql='Select * from dede_arctype where reid=~id~'}
    <dd><a href="[field:typedir function='str_replace("{cmspath}","",@me)'/]">[field:typename/]</a></dd>
    {/dede:sql}